﻿<Window x:Class="YnabCsvConverter.OverwriteOrDeltaPrompt"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="OverwriteOrDeltaPrompt" Height="180" Width="450"
        WindowStyle="None"
        WindowState="Normal"
        AllowsTransparency="True"
        WindowStartupLocation="CenterScreen"
        ResizeMode="CanResizeWithGrip"
        Background="Transparent"
        MouseDown="HandleWindowMouseDown">

   <Border Margin="10" BorderBrush="{StaticResource DarkLine}" BorderThickness="1">
      <Border.Effect>
         <DropShadowEffect Color="#909090" BlurRadius="10" ShadowDepth="0" />
      </Border.Effect>
      <Grid Background="#FFFFFF">
         <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="40" />
         </Grid.RowDefinitions>

         <Border Grid.Row="0" BorderThickness="0,0,0,1" BorderBrush="{StaticResource DarkLine}">
            <Grid Background="{StaticResource HeaderBackground}">
               <StackPanel Orientation="Horizontal">
                  <TextBlock Style="{StaticResource HeaderTextBlock}" VerticalAlignment="Center" Margin="10" Text="Target file already exists.">
                  </TextBlock>
               </StackPanel>
            </Grid>
         </Border>

         <Grid Grid.Row="1" Margin="10,10,10,10">
            <Grid.ColumnDefinitions>
               <ColumnDefinition Width="48" />
               <ColumnDefinition Width="*" />
            </Grid.ColumnDefinitions>

            <Image Grid.Column="0" Source="Resources/Icons/question48.png" Width="48" Height="48" />

            <StackPanel  Grid.Column="1" Margin="10,0,0,0" Orientation="Vertical">
               <TextBlock  Style="{StaticResource ParagraphTextBlock}" HorizontalAlignment="Stretch" TextWrapping="Wrap">
                  Do you want to overwrite the existing file with 
                  all data from source file (<Run Foreground="{StaticResource AccentBrush}">Overwrite</Run>) <Run FontWeight="Bold" Foreground="Black">or</Run> 
                  overwrite it with data that is not in the target file (<Run Foreground="{StaticResource AccentBrush}">Delta</Run>).
               </TextBlock>
            </StackPanel>
          </Grid>

         <Border Grid.Row="2" BorderThickness="0,1,0,0" BorderBrush="{StaticResource DarkLine}">
            <Grid Background="{StaticResource HeaderBackground}" >

               <StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
                  <Button Margin="5" Click="HandleOverwriteClick" MinWidth="80">Overwrite</Button>
                  <Button Margin="5" Click="HandleDeltaClick" MinWidth="80">Create Delta</Button>
                  <Button Margin="5" Click="HandleCancelClick" MinWidth="80">Cancel</Button>
               </StackPanel>

            </Grid>
         </Border>
      </Grid>
   </Border>
</Window>
